<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-html语法(了解)</title>
</head>
<body>
  <div id="app">
    <h2> {{content}} </h2>
    <h2 v-html="content"></h2>
  </div>
  
  <script src="../lib/vue.js"></script>
  <script>
    // 使用vue
    const app = Vue.createApp({
      data: function(){
        return {
          content: `<span style="color: red; font-size: 30px;">hahaha</span>`
        }
      }
      ,methods: {
      }
    }
    )
    // 挂载 
    app.mount("#app")
  </script>

</body>
</html>
